<?php
/*
 * Created on 2013-6-15
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

require_once("../../base/Db.php");
$db = new Db;
$sql = "select *from product_cate";
$res = $db->getRsArray($sql);
?>
<div class="right2_tt" align="left">
	<table>

	  <tr style="background:#FFB109;"><td>序号/编号</td><td>类别编码</td><td>类别名称</td><td>编辑</td><td>删除</td></tr>
	  <?php
	   for($i=0;$i<count($res);$i++){
		$id = $res[$i]['id'];
		$code = $res[$i]['code'];
		$name = $res[$i]['name'];

	 ?>
	   <tr><td><?php echo $id ?></td><td><?php echo $code?></td><td><?php echo $name?></td><td><a href="cate_update?id=<?php echo $id ?>">编辑</a></td><td><a href="./div/product_cate/cate_delete.php?id=<?php echo $id?>">删除</a></td></tr>
	 <?php
	 	}
	 ?>
	</table>
</div>
